#!/usr/bin/env python3.11
# -*- encoding: utf-8 -*-
'''
@File    :   api.py
@Time    :   2024/05/27 16:55:33
@Author  :   windstarry 
@Version :   1.0
'''
# here put the import lib
from ninja_extra import NinjaExtraAPI
from core.response import ORJSONRenderer
from system.controllers import UserController, UserTokenController,RoleController
from apps.menus.controllers import MenuController

api = NinjaExtraAPI(
    title="后端管理接口",
    description="使用DjangoNinjaextra实现的后端管理接口",
    version="1.0.0",
    urls_namespace="django-rbac",
    renderer=ORJSONRenderer(),
)


api.register_controllers(
    UserController,
    UserTokenController,
    RoleController,
    MenuController,
)